@{
    Layout=null;

}
@using MvcSort.Models
@model IEnumerable<Book>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="~/css/base.css">
</head>
<body>
    <div>
        <div id="top">
            <input type="button" name="" id="btnxj" value="新建">&nbsp;&nbsp;<input type="text" name="text" id="" placeholder="请输入名称">&nbsp;<input type="button" name="" id="btncz" value="查找">
        </div>
        <div>
            <table>
                <tr>
                    <th>id</th>
                    <th>名称</th>
                    <th>isbn</th>
                    <th>cz</th>
                </tr>
                @foreach (var item in Model)
                {
                    <tr>
                        <td>@item.Id</td>
                        <td>@item.BookName</td>
                        <td>@item.ISBN</td>
                        <td>
                            <input type="button" name="" id="" onclick="btnbj(@item.Id)" value="编辑"> 
                            <input type="button" name="" id="" onclick="btnsc(@item.Id)" value="删除"> 
                        </td>
                    </tr>
                }
            </table>
        </div>
    </div>
    <script src="~/lib/jquery/dist/jquery.min.js"></script>
    <script src="~/js/base.js"></script>
</body>
</html>